﻿using AccessControl.Common;
using AccessControl.DataAcess;


namespace AccessControl.Business
{
    public class EventBusiness
    {
        public static AccessControlDS.tblEventDataTable SelectAll(){
            var tbl = new AccessControlDS.tblEventDataTable();
            return EventAccess.SelectAll(tbl);
        }

        public static AccessControlDS.tblEventDataTable SelectAll(AccessControlDS.tblEventDataTable tbl)
        {
            return EventAccess.SelectAll(tbl);
        }

        public static AccessControlDS.tblEventDataTable SelectByFilter(string filter)
        {
            return EventAccess.SelectByFilter(filter);
        }

        public static void Insert(AccessControlDS.tblEventRow row)
        {
            EventAccess.Insert(row);
        }

        public static void Update(AccessControlDS.tblEventRow row)
        {
            EventAccess.Update(row);
        }

        public static void Delete(AccessControlDS.tblEventRow row)
        {
            EventAccess.Delete(row);
        }
    }
}
